<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
	this.imagePreview = function(){	
	xOffset = 10;
	yOffset = 30;
	$("a.preview").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<p id='preview'><img src='"+ this.href +"' alt='Image preview' width='200' height='150' />"+ c +"</p>");			
		$("#preview").css("top",(e.pageY - xOffset) + "px").css("left",(e.pageX + yOffset) + "px").fadeIn("fast");						
    	},
	function(){
		this.title = this.t;	
		$("#preview").remove();
    	});	
	$("a.preview").mousemove(function(e){
		$("#preview").css("top",(e.pageY - xOffset) + "px").css("left",(e.pageX + yOffset) + "px");
	});			
};
$(document).ready(function(){
	imagePreview();
});
</script>
<style>
#preview{
	position:absolute;
	border:1px solid #ccc;
	background:#333;
	padding:5px;
	display:none;
	color:#fff;
	}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Genomic Prep from Intermediates (B)</title>
</head>
<body>
<table width = "100%" bgcolor="#DBF3FF">
	<tr>
		<td width="70%">
			Genomic Prep from Intermediates (B)
		</td>
		<td width="10%">
		 	<s:form action="GenePrepIntermediatesHistory">
				<s:hidden value="%{geneName}" name="geneName" />
				<s:hidden value="B" name="type" />
				<s:submit value="history"/>
			</s:form>
		</td>
		<td width="10">
			<s:form action="emergencyReport" id="emergencyPrepIntermediatesB">
			<s:hidden value="%{geneName}" name="geneName" />
			<s:hidden value="Genomic Prep from Intermediates (B)" name="formName"/>
			<input type="button" value="report" onclick="reportEmergencyPrepIntermeidatesB()"/>
			</s:form>
		</td>
	</tr>
</table>
<center>
Genename:<s:property value="geneName"/>
<s:form action="updateGenePrepIntermediates" id="updateGenePrepIntermeidatesB">
<h3>160 - 169</h3>
<table>
<tr><td><s:textfield label="Date" name="date1"></s:textfield></td></tr>
</table>
<table width="100%">
	<tr>
		<td width="25%">Diagnostic PCR(160-169)</td>
		<td width="25%">X = 700For/002</td>
		<td width="25%">Y = 700Rev/001</td>
		<td width="25%">Z = Control(TFB primers)</td>
	</tr>
</table>
<table width="100%">
	<tr>
	<td width="25%">
		<table><tr><td>Expected size</td></tr></table>
	</td>
	<td width="25%">
		<table>
		<s:if test='x1 == 0'><tr><td><s:textfield label="X" name="x1" value=""/></td></tr></s:if>
		<s:else><tr><td><s:textfield label="X" name="x1"/></td></tr></s:else>
		</table>
	</td>
	<td width="25%">
		<table>
		<s:if test='y1 == 0'><tr><td><s:textfield label="Y" name="y1" value=""/></td></tr></s:if>
		<s:else><tr><td><s:textfield label="Y" name="y1"/></td></tr></s:else>
		</table>
	</td>
	<td width="25%">
		<table>
		<s:if test='z1 == 0'><tr><td><s:textfield label="Z" name="z1" value=""/></td></tr></s:if>
		<s:else><tr><td><s:textfield label="Z" name="z1"/></td></tr></s:else>
		</table>
	</td>
	<tr>
</table>
<table width="100%">
	<tr>
		<td width="10%">
			<table>
				<tr>
					<td>160</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x160" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y160" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z160" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>161</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x161" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y161" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z161" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>162</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x162" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y162" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z162" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>163</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x163" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y163" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z163" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>164</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x164" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y164" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z164" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>165</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x165" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y165" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z165" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>166</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x166" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y166" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z166" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>167</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x167" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y167" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z167" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>168</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x168" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y168" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z168" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>169</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x169" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y169" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z169" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<h3>170 - 179</h3>
<table>
<tr><td><s:textfield label="Date" name="date2"></s:textfield></td></tr>
</table>
<table width="100%">
	<tr>
		<td width="25%">Diagnostic PCR(170-179)</td>
		<td width="25%">X = 700For/002</td>
		<td width="25%">Y = 700Rev/001</td>
		<td width="25%">Z = Control(TFB primers)</td>
	</tr>
</table>
<table width="100%">
	<tr>
	<td width="25%">
		<table><tr><td>Expected size</td></tr></table>
	</td>
	<td width="25%">
		<table>
		<s:if test='x2 == 0'><tr><td><s:textfield label="X" name="x2" value=""/></td></tr></s:if>
		<s:else><tr><td><s:textfield label="X" name="x2"/></td></tr></s:else>
		</table>
	</td>
	<td width="25%">
		<table>
		<s:if test='y2 == 0'><tr><td><s:textfield label="Y" name="y2" value=""/></td></tr></s:if>
		<s:else><tr><td><s:textfield label="Y" name="y2"/></td></tr></s:else>
		</table>
	</td>
	<td width="25%">
		<table>
		<s:if test='z2 == 0'><tr><td><s:textfield label="Z" name="z2" value=""/></td></tr></s:if>
		<s:else><tr><td><s:textfield label="Z" name="z2"/></td></tr></s:else>
		</table>
	</td>
	<tr>
</table>
<table width="100%">
	<tr>
		<td width="10%">
			<table>
				<tr>
					<td>170</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x170" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y170" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z170" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>171</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x171" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y171" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z171" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>172</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x172" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y172" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z172" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>173</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x173" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y173" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z173" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>174</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x174" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y174" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z174" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>175</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x175" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y175" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z175" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>176</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x176" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y176" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z176" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>177</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x177" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y177" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z177" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>178</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x178" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y178" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z178" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>179</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x179" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y179" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z179" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<table>
<tr><td><s:hidden name="geneName" value="%{geneName}"/></td></tr>
<tr><td><s:hidden name="type" value="B"/></td></tr>
<tr><td><input type="button" value="update" onclick="updatePrepIntermeidatesB()"/></td></tr>
</table>
</s:form>
</center>
<center>
	<p></p> 
	<table width="50%">
		<tr bgcolor="#DBF3FF">
		<td>Date Uploaded</td>
		<td>Uploader</td>
		<td>File Name</td>
		<td>Option</td>
		</tr> 
		<s:iterator value="imageList">
        <tr bgcolor="#E1EBED">
        	<td width="28%"><s:date name="dateModified" format="MM/dd/yyyy hh:mm:ss a"/></td>
        	<td width="15%"><s:property value = "user.userName"/></td>
        	<td><a href="<s:url action = "ViewImage"><s:param name = "id"><s:property value="id"/></s:param></s:url>"><s:property value= "fileName"/></a></td>
        	<td><a href="upload/<s:property value="fileName"/>" class="preview">Preview</a>
        </tr>
        </s:iterator>       
   </table>   
<br>
</center>
</body>
</html>